﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EventbriteService.Model
{
    public class QuestionSet
    {
        public QuestionSet()
        {
            Questions = new List<QuestionInfo>();
        }
        public List<QuestionInfo> Questions { get; set; }
        
        public class QuestionInfo
        {
            public QuestionInfo()
            {
                Choices = new List<Choice>();
            }
            public long? Id { get; set; }
            public QuestionContent Question { get; set; }
            public bool Required { get; set; }
            public string Type { get; set; }
            public string Respondent { get; set; }
            public List<Choice> Choices { get; set; }
        }
        
        public class QuestionContent
        {
            public string Text { get; set; }
            public string Html { get; set; }
        }

        public class Choice
        {
            public Choice() { Answer = new Answer(); }
            public long? Id { get; set; }
            public Answer Answer { get; set; }
        }

        public class Answer
        {
           // public long? Id { get; set; }
            public string Text { get; set; }
            public string Html { get; set; }
        }
    }
}
